<div class="container">
  {{#if model.workers}}
  <h4>Your Workers</h4>
  <table class="table table-condensed table-striped">
    <thead>
      <tr>
        <th>ID</th>
        <th>Hashrate (rough, short average)</th>
        <th>Hashrate (accurate, long average)</th>
        <th>Last Share</th>
      </tr>
    </thead>
    <tbody>
      {{#each-in model.workers as |k v|}}
        <tr class="{{if v.offline "warning" "success"}}">
          <td>{{k}}</td>
          <td>{{format-hashrate v.hr}}</td>
          <td>{{format-hashrate v.hr2}}</td>
          <td>{{format-relative (seconds-to-ms v.lastBeat)}}</td>
        </tr>
      {{/each-in}}
    </tbody>
  </table>
  {{else}}
    <h3>No workers online</h3>
  {{/if}}
  <div class="alert alert-info" role="alert">
    <span class="sr-only">Notice:</span>
    Your average hashrate will be smoothly adjusted until you have shares to fullfill estimation window.<br/>
    There are two windows, long and short, first is equal to about 30 minutes and long window is usually equal to 3 hours.<br/>
    Dead (sick) workers will be highlighted in a table of workers if they didn't submit a share for 1/2 of short window,
    so you can perform maintenance of your rigs.
  </div>
  <div class="alert alert-info" role="alert">
    <strong>Your bulk stats JSON API URL:</strong> <a href="/api/accounts/{{model.login}}">/api/accounts/{{model.login}}</a>
  </div>
</div>
